package com.atguigu.gulimall.order.service;

import com.atguigu.common.to.SeckillOrderTO;
import com.atguigu.gulimall.order.vo.OrderConfirmVO;
import com.atguigu.gulimall.order.vo.OrderSubmitVO;
import com.atguigu.gulimall.order.vo.PayAsyncVO;
import com.atguigu.gulimall.order.vo.SubmitOrderResponseVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2019-10-08 09:56:16
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVO confirmOrder();

    SubmitOrderResponseVO submitOrder(OrderSubmitVO vo);

    void testST(Integer t);

    void testMQ();

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PageUtils listWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVO vo);

    void createSeckillOrder(SeckillOrderTO seckillOrderTO);
}

